package com.acxy.test.service;

import com.acxy.ants.core.InitializingBean;
import com.acxy.ants.core.annotation.Autowired;
import com.acxy.ants.core.annotation.Service;
import com.acxy.ants.core.annotation.Value;

/**
 * @author MrShun
 * @version 1.0
 * @Date 2017-05-11
 */
@Service
public class DemoServiceImpl implements DemoService, InitializingBean{

    private String url;

    @Autowired
    private TestServiceImpl testService;

    public String testDemo() {
        System.out.println("DemoServiceImpl 测试 调用了 testDemo!");
        return url;
    }

    @Override
    public void init() {
        System.err.println("@@@@:"+testService);
        String name = testService.login("张三", " admin");
        System.err.println(name);
        System.err.println("####初始化实例"+url);
    }
}
